package Projektarbete;

public class Friend {
	String name;
	boolean online;
	
	public Friend(String username, boolean status){
		
		this.name = username;
		this.online = status;
		
	}
	
	public String getUsername(){
		return name;
	}
	
	public boolean getStatus(){
		return online;
	}
	
	public void setStatus(String status){
		if(status.equals("true") && !online)
			online = true;
		else if(status.equals("false") && online)
			online = false;
	}

}
